<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    //求平方和立方
    // const makPower = (power)=>{
    //   return (number)=>{
    //     return  Math.pow(number,power)
    //   }
    // }
    // const power2 = makPower(2);
    // const power3 = makPower(3);
    // console.log(power2(2),power3(2))

    // 计算工资
    const makeSalary=(base)=>{
      return (performance)=>{
        return base +performance;
      }
    }
    const leve1 = makeSalary(15000);
    const leve2 = makeSalary(25000);
    console.log(leve1(2000),leve2(5000))
  </script>
</body>
</html>